turn off compile warning when leaving a line
comment an entire block of code
https://support.microsoft.com/en-us/office/create-and-save-all-your-macros-in-a-single-workbook-66c97ab3-11c2-44db-b021-ae005a9bc790
'D:\Users\rbambauer\AppData\Roaming\Microsoft\Excel\XLSTART\PERSONAL.XLSB
'https://stackoverflow.com/questions/11560934/when-editing-microsoft-office-vba-how-can-i-disable-the-popup-compile-error-m
'Click the menu "Tools" and then "Options".
'In the Options' "Editor" tab, uncheck the "Auto Syntax Check" box. (See screenshot, below.)
'This change does not make the editor stop compiling in the background and marking syntax errors in red (or whatever formatting is specified in the Options tab "Editor Format").
'MS Office programs share this common VBA editor, so if you change an option while editing VBA for Excel then you've changed it for Outlook, Word, etc.
https://stackoverflow.com/questions/12933279/how-to-comment-and-uncomment-blocks-of-code-in-the-office-vba-editor
In the VBA editor, go to View, Toolbars, Customise... or right click on the tool bar and select Customise... Under the Commands tab, select the Edit menu on the left. Then approximately two thirds of the way down there's two icons, Comment Block and Uncomment Block. Drag and drop these onto your toolbar and then you have easy access to highlight a block of code, and comment it out and uncomment with the click of a button.
button with hotkeys:
last updated: Fri 2021-10-15 7:17 AM